.my-header {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 80px;
    padding: 0 20px;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.my-header .header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.my-header nav {
    display: flex;
    align-items: center;
    width: 600px;
    /* 设置导航栏容器的宽度 */
    margin: 0 auto;
    /* 居中 */
}

.my-header nav a {
    display: block;
    padding: 0 15px;
    height: 40px;
    line-height: 40px;
    text-decoration: none;
    color: #333;
    font-size: 16px;
    font-weight: 600;
    white-space: nowrap;
    /* 固定宽度 */
    text-align: center;
}

.my-header .logo {
    display: flex;
    flex-direction: column;
}

.my-header .logo h1 {
    margin: 0;
    font-size: 24px;
    font-weight: bold;
}

.my-header .nav-links ul {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
}

.my-header .nav-links li {
    flex: 1;
    /* 设置 li 元素为自适应宽度 */
    text-align: center;
    /* 水平居中 */
    margin-right: 0;
    /* 去除 li 之间的右边距 */
}

.my-header .nav-links li:last-child {
    margin-right: 0;
}

.my-header .nav-links a {
    display: inline-block;
    width: 100%;
    /* 让链接占满 li 元素的宽度 */
    color: #333;
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
}
.my-header #current-time {
    width: 150px; /* 设置固定宽度 */
    text-align: right; /* 将文本右对齐 */
    font-size: 14px;
    color: #666;
  }
.my-header .user-info ul {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
    white-space: nowrap; /* 防止换行 */
}

.my-header .user-info li {
    margin-right: 20px;
}

.my-header .user-info li:last-child {
    margin-right: 0;
}

.my-header .user-info a {
    color: #333;
    text-decoration: none;
}

.my-header #current-time {
    font-size: 14px;
    color: #666;
}